package com.puccampinas.finalproject.core.persistence.entity;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "messages")
@XmlRootElement(name = "messages")
@XmlAccessorType(XmlAccessType.FIELD)
public class MessageList implements Serializable {

	private static final long serialVersionUID = 120938102938L;
	
	@XmlElement(name = "qtdMessages")
	private Integer qtdMessages;
	
	@XmlElement(name = "messages")
	private List<Message> messages;

	public Integer getQtdMessages() {
		return qtdMessages;
	}

	public void setQtdMessages(Integer qtdMessages) {
		this.qtdMessages = qtdMessages;
	}

	public List<Message> getMessages() {
		return messages;
	}

	public void setMessages(List<Message> messages) {
		this.messages = messages;
	}

}
